package vn.edu.saigontech.ncms.web.offering;

import java.io.File;

import vn.edu.saigontech.ncms.util.Checker;
import vn.edu.saigontech.ncms.web.AbstractValidator;

@SuppressWarnings("serial")
public class ValidateTimeTableAction extends AbstractValidator {
	private File upload;
	private String uploadFileName;

	@Override
	public String check() {
		if (Checker.isNull(this.upload)) {
			this.sendKeyError("validator.required", "fileName");
		}
		return this.toSuccess();
	}

	public File getUpload() {
		return upload;
	}

	public void setUpload(File upload) {
		this.upload = upload;
	}

	public String getUploadFileName() {
		return uploadFileName;
	}

	public void setUploadFileName(String uploadFileName) {
		this.uploadFileName = uploadFileName;
	}
}
